package resources.factories;

import java.lang.reflect.InvocationTargetException;
import java.util.ResourceBundle;

import core.molecules.organic.phosphate.Phosphate;

import dna.nucleobase.Nucleobase;
import dna.nucleosides.Nucleoside;



import util.XYZPosition;

public class NucleosideFactory extends MoleculeFactory<Nucleoside> {

	
	
	public NucleosideFactory(String prefix, ResourceBundle rb) {
		super(prefix, rb);
	}

	@SuppressWarnings("unchecked")
	@Override
	protected <S extends Nucleoside> S construct(
			Class<? extends Nucleoside> value, Object[] args) throws IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
			return (S) value.getConstructor(int.class).newInstance(args[0]);
	}


}
